package com.yuanhua.sim.business.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author yuanhua
 * @since 2022-08-03
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("im_user_msg_box")
@ApiModel(value = "UserMsgBox对象", description = "")
public class UserMsgBox extends Model<UserMsgBox> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("信箱拥有者")
    @TableField("owner_id")
    private Long ownerId;

    @ApiModelProperty("消息参与的另一方")
    @TableField("other_id")
    private Long otherId;

    @ApiModelProperty("消息ID")
    @TableField("mid")
    private String mid;

    @ApiModelProperty("信箱类型（发信箱，收信箱）")
    @TableField("box_type")
    private Integer boxType;

    @TableField("create_time")
    private LocalDateTime createTime;


    @Override
    public Serializable pkVal() {
        return this.mid;
    }

}
